package com.yidu.qianfeng.service;

import com.yidu.qianfeng.common.bean.Vehicle.CarInfo;
import com.yidu.qianfeng.common.bean.client.Consignee;
import com.yidu.qianfeng.common.bean.client.Shipper;
import com.yidu.qianfeng.common.bean.company.Subst;
import com.yidu.qianfeng.common.bean.transport.TrackWaybill;
import com.yidu.qianfeng.common.bean.transport.TrackWrap;
import com.yidu.qianfeng.common.bean.transport.TransportProtocol;
import com.yidu.qianfeng.common.bean.transport.TruckLoading;
import com.yidu.qianfeng.common.bean.waybill.Waybill;

import java.util.List;

public interface TruckServiceInter {
    List<TrackWrap> selectwaybill(int page, int limit, TrackWrap waybill, String status);

    List<Waybill> selectsavecar(int page, int limit,String id);

    List<Waybill> screenselect();

    List<Shipper> departselect();

    List<Waybill> selectcar(int page, int limit);

    int changeState(int id);

    int removecar(int id);

    int savecar(int id);

    int removecartwo(int id);

    int insertcar(TruckLoading loading);

    int insertprotocol(TransportProtocol pro);

    Waybill selectsavecartow(int id);

    List<TruckLoading> selecttruckloading(int i, int limit);

    int deletecarone(int id);

    int updatecar(TruckLoading loading);

    int selectcarnum();

    int selectwaybillnum(String status);

    int updatecarstatus(String ids);

    int selectcarnumtwo();

    List<TrackWrap> depatlist(int i, int limit,TrackWrap wrap);

    int depatlistnum();

    int relation(String ids,String  trucknum);

    String selecttrucknum(String ids);

    int deleterelation(int str);

    List<TruckLoading> selectcarlist(String id);

    int selectdriver(CarInfo info);

    int insertdriver(CarInfo info);

    int selectconsignee(Consignee con);

    int insertconsignee(Consignee con);

    int deletecarlist(String parseInt);

    int updateprotocol(TransportProtocol t);

    int updatecarone(int parseInt);

    List<TrackWrap> selectdriverinfo(String carDriver,String startingSubst);

    List<Consignee> selectconsinfo(String consiCom);

    List<Subst> selectsubtype();

    Subst selectsubtypeone(CarInfo info);

    boolean login(String username, String password);

    int selectpand(String id);

    List<TrackWaybill> selectwaybilllist(String waybillConsignNum);

    int selectdelnum(String str);
}
